package com.xiaoyao.novel.test;

import java.io.IOException;

import com.xiaoyao.novel.pojo.WebInfo;
import com.xiaoyao.novel.service.WebInfoService;

public class Main {

	public static void main(String[] args) throws IOException {
//		Circle c1 = new Circle(0,4,5);
//		Circle c2 = new Circle(0,-4,5.0);
//		CirIntersect ci1 = new CirIntersect(c1,c2);
//		ci1.intersect();
//		System.out.println("===================");
//		Circle c3= new Circle(4,0,5);
//		Circle c4 = new Circle(-4,0,5);
//		CirIntersect ci2 = new CirIntersect(c3,c4);//x2 仍有异常
//		ci2.intersect();	
		
//		HttpClientUtil httpClientUtil = new HttpClientUtil("UTF-8");
//		String page  =  httpClientUtil.getPage("http://hotels.ctrip.com/Domestic/Tool/AjaxGetCitySuggestion.aspx");
//		System.out.println(page);
		
//		BookService bookService = new BookService() ;
//		Book book =bookService.getById(44);
//		book.setAuthorName("我吃西红柿2");
//		bookService.update(book); 
		
		
//		FriendLinkService friendLinkService= new FriendLinkService() ;
//		FriendLink friendLink =new FriendLink() ;
//		friendLink .setLinkName("测试33");
//		friendLink.setLinkUrl("test.com");   
//		friendLinkService.insert(friendLink);
//		
//		ChapterService chapterService = new ChapterService() ;
//		Chapter chapter =new Chapter() ;
//		
//		chapter.setChapterContent("我的内存融");
//		chapter.setChapterTitle("标题");
//		chapterService.insert(chapter);
		
		WebInfoService webInfoService=new WebInfoService() ;
		WebInfo webInfo =webInfoService.getStaticWebInfo();
		webInfo.setDomainPhone("http://m.tianfengfeiye.com");
		webInfoService.update(webInfo);
	}
}
